import request from '@/utils/request-video'

export function getList(params) {  
    return request({
        url: 'dai/query/course',
        method: 'GET',
        params,
    })
}
export function deleteList(data) {
    return request({
        url: 'dai/remove/course',
        method: 'POST',
        data
    })
}
export function addList(data) {
    return request({
        url: 'dai/add/course',
        method: 'POST',
        data
    })
}

export function editload(id) {
    return request({
        url: 'dai/update/course' + id,
        method: 'POST',
        
    })
}

export function editvideo(data,id) {
    return request({
        url: 'dai/update/course?id=' + id,
        method: 'POST',
        data
        
    })
}